#pragma once
#include "ParseUtil.h"

#define FLOAT_TYPE_LENGTH	(INTEGER_LENGTH+DECIMAL_LENGTH)
#define AVWDATA_LENGTH	(3*(INTEGER_LENGTH+DECIMAL_LENGTH))
#define AVWDATA_FIELDS_COUNT	3
#define FLOAT_A_FIELD	0
#define FLOAT_V_FIELD	1
#define FLOAT_W_FIELD	2

class AVWData
{
public:
	AVWData(void);
public:
	~AVWData(void);
protected:
	ParseUtil _parseUtil;
public:
	float A;
	float V;
	float W;

	char szFrameData[AVWDATA_LENGTH+1];
public:
	void toBinaryDisplay(char* szAVWDataDisplay);
	void getFrameField(int fieldNo, char* szFrameFieldString);
	void setFrame(char* szFrameString);
	void setPropertiesFromFrameData();
};
